package com.platform.service.impl;

import com.platform.dao.CategoryConfDao;
import com.platform.entity.CategoryConfEntity;
import com.platform.service.CategoryConfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 商城配置:APP商城分类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-03-09 10:01:24
 */
@Service("categoryConfService")
public class CategoryConfServiceImpl implements CategoryConfService {
    @Autowired
    private CategoryConfDao categoryConfDao;

    @Override
    public CategoryConfEntity queryObject(Integer id) {
        return categoryConfDao.queryObject(id);
    }

    @Override
    public List<CategoryConfEntity> queryList(Map<String, Object> map) {
        return categoryConfDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return categoryConfDao.queryTotal(map);
    }

    @Override
    public int save(CategoryConfEntity categoryConf) {
        return categoryConfDao.save(categoryConf);
    }

    @Override
    public int update(CategoryConfEntity categoryConf) {
        return categoryConfDao.update(categoryConf);
    }

    @Override
    public int delete(Integer id) {
        return categoryConfDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return categoryConfDao.deleteBatch(ids);
    }
}
